package com.zh.book_borrow.mapper;

import com.zh.book_borrow.vo.BookVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    List<BookVO> page(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,
                      @Param("borrower") String borrower, @Param("bookName") String bookName,
                      @Param("state") Integer state);

    void updateState(@Param("bookId") Long bookId, @Param("userId") Long userId, @Param("state") Integer state);
}
